var PW = PW || {};

PW.pitch = {

    options:function () {
    },

    load:function () {
    },

    el:{ },

    events:function () {
        $('#booking-select').change(function () {
            var value = $(this).val();
            $('#booking-table tr').hide();
            $('#booking-table thead tr').show();
            $('[data-date=' + value + ']').show();

            if ($('[data-date=' + value + ']').length == 0) {
                $('tr.none').show();
            }
        });
        $('#booking-select').trigger('change');
    },

    init:function () {
        this.options();
        this.load();
        this.events();
    }
};


